<?php
/**
 * 数字人验证器
 */

namespace app\common\validate;

class UserDigitalHumanValidate extends CommonBaseValidate
{
    protected $rule = [
            'user_id|用户ID' => 'require',
            'create_status|数据字生成状态' => 'require',
            'status|是否启用' => 'require',
    ];

    protected $message = [
            'user_id.required' => '用户ID不能为空',
            'status.required' => '是否启用不能为空',
    ];

    protected $scene = [
        'admin_add'     => ['user_id', 'status', ],
        'admin_edit'    => ['id', 'user_id', 'status', ],
        'admin_del'     => ['id', ],
        'admin_disable' => ['id', ],
        'admin_enable'  => ['id', ],
        'api_add'       => ['user_id', ],
        'api_info'      => ['id', ],
        'api_edit'      => ['id', 'user_id', ],
        'api_del'       => ['id', ],
        'api_disable'   => ['id', ],
        'api_enable'    => ['id', ],
    ];
}
